<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%-- 액션태그를 이용한 자바 클래스 선언 --%>
<%-- rmaqlc31.sungjuk.SungJukVO 에 대해 vo라는 이름으로 객체 생성 --%>
<jsp:useBean id="sjvo" class="rmaqlc31.sungjuk.SungJukVO"></jsp:useBean>
<%-- SungJukVO sjvo = new SungJukVO(); --%>

<fmt:requestEncoding value="UTF-8"/>
<%-- <% request.setCharacterEncoding("UTF-8"); %> --%>

<%-- <jsp:setProperty property="name" name="sjvo"/>
<jsp:setProperty property="kor" name="sjvo"/>
<jsp:setProperty property="eng" name="sjvo"/>
<jsp:setProperty property="mat" name="sjvo"/> --%>

<jsp:setProperty property="*" name="sjvo"/>

<%-- sjno.setName(request.getParameter("name"));
	 sjvo.setKor(Integer.parseInt(request.getParameter("kor")));
	 sjvo.setEng(Integer.parseInt(request.getParameter("eng")));
	 sjvo.setMat(Integer.parseInt(request.getParameter("mat"))); --%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>성적 처리 웹 프로그램 - 액션태그&amp; EL</title>
</head>
<body>
	<h1>성적 입력 처리 결과</h1>
	<p>이름 : <jsp:getProperty property="name" name="sjvo"/> </p>
	<p>국어 : ${ sjvo.kor }</p>
	<p>영어 : ${ sjvo.eng }</p>
	<p>수학 : ${ sjvo.mat }</p>
	<p>총점 : </p>
	<p>평균 : </p>
	<p>학점 : </p>
	<p>다시입력 / 전체조회</p>
</body>
</html>